//观察者 

export default class Observers {
    constructor(observers, updateFunc) {
        this.Observers = observers
        this.updateFunc = updateFunc
        this.Observers.attach(this)
    }
    update() {
        this.updateFunc(this.Observers)
    }
}
